public class MallardDuck extends Duck {
    public MallardDuck(String color, double heavy) {
        super(color, heavy);
    }

    public void setHeavy(int heavy) {
        this.heavy = heavy;
    }

    @Override
    public void fly() {
        System.out.println("绿头鸭飞得又高又远");
    }

    @Override
    public void quack() {
        System.out.println("绿头鸭嘎嘎叫，声音洪亮");
    }
}